from home import models
from rest_framework.serializers import ModelSerializer


class NavSerializer(ModelSerializer):
    class Meta:
        model = models.NavModel
        fields = ["id", "navname", "link", "ishttp"]


class BannerSerializer(ModelSerializer):
    class Meta:
        model = models.BannerModel
        fields = ["id", "title", "link", "ishttp", "imgsrc"]
